%Qexcel Tackles the Challenges of Converting Data to SAS from Excel
نویسنده
چکیده
One common programming task in the pharmaceutical industry is to transfer external data such as lab, ECG, PK, and other non-casereport-form data to SAS from Excel. Spreadsheets can be read with the SAS import wizard or procedures such as PROC ACCESS and PROC IMPORT, but often must be modified by adding or editing column names, formatting cells, deleting blank columns or rows, or moving to different platforms. However, the responsibility of the owner for the contents of the original file is lost when any modification to the file is made. Also the audit trail process required by 21 CFR Part 11 cannot be simplified if such data transfers are made with the non-original spreadsheets. This paper presents a SAS macro, %Qexcel, which has the capability and flexibility to tackle the challenges of handling external data. The macro provides total control over the Excel import with the following features: (1) automatically detecting the worksheet name and cell-range, (2) allowing the user to select any row for data variable names and labels, (3) accepting user-defined variable names and data types (numeric or character), (4) identifying the starting row for the first observation, if not specified, (5) enabling the use of SAS formats and informats to define data fields, (6) changing cell format to 'general' to import the original, unformatted data, (7) transforming out-of-range single cell(s) to be field(s) in a SAS dataset, and (8) uploading the converted SAS data to other platforms (e.g., UNIX) via SAS/CONNECT. This paper, which is suitable for all SAS skill levels, discusses the methodology of %Qexcel design with SAS code, then shows example calls to the macro.
منابع مشابه
Secrets from a SAS Technical Support Guy: Combining the Power of the SAS® Output Delivery System with Microsoft Excel Worksheets
Business analysts commonly use Microsoft Excel with the SAS® System to answer difficult business questions. While you can use these applications independently of each other to obtain the information you need, you can also combine the power of those applications, using the SAS Output Delivery System (ODS) tagsets, to completely automate the process. This combination delivers a more efficient pro...
متن کاملSeamless Reporting Automation through the Integration of JMP, SAS, and VBA
The TiVo user interface (UI) is continuously enhanced for design. To monitor and improve UI performance, statistical tests are run on multiple test cases across various dimensions, and weekly reports are generated. The reports require the flexibility of Excel, the analysis power of JMP® and SAS®, and the reporting convenience of PowerPoint. This can be accomplished by integrating JMP, SAS® ODS,...
متن کامل135-31: Combining the Power of ODS, Data Set Concatenation, and DDE to Output Customized Statistical Results from SAS® to Microsoft Excel
SAS is a widely used software package for statistical analyses, however presentation of customized results for reports and publications is cumbersome and time consuming if done manually and there is a high likelihood of incurring errors during the process. The method reported here makes the presentation of results easier and more efficient especially when a large number of variables are being t...
متن کاملEffects of converting forest to the rainfed lands on soil characteristics in a part of Zagros forests
The forest soils are the key parts of the Earth system that are globally degraded through anthrop induced deforestation, mainly converting to other landuses. The present study was conducted in Gazafolya village located in Merek watershed, Kermanshah, Iran, in which the soil quality of the forest and converted forest (rainfed lands) with the same topographic and geologic conditions were compared...
متن کاملConstructing a Data Warehouse for Pharmacokinetic Data
The construction of a warehouse using data from DuPont Pharmaceutical’s Clinical Pharmacokinetics Group with the SAS/Warehouse Administrator product is described herein. Data sources incorporated into the pharmacokinetic warehouse existed in multiple formats (Oracle, Excel, SAS data sets, etc) and were represented by numerous individual files, rather then few large files. In most cases, the da...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2002